import { request } from '@/utils/request'

export function refreshTokenApi(refreshToken: string): Promise<any> {
  return request.get('/user/refresh', { params: { refreshToken } })
}

export function updateUserPasswordApi(data: { oldPassword: string, newPassword: string }): Promise<void> {
  return request.post('/user/password', data)
}
